<template>
    <div>
        Home Page
    </div>
</template>

<script>
export default {
    middleware: 'indexAuth',
    validate({params, query}) {
        console.log("validate");
        return /^\d+$/.test(query.id);
    }
}
</script>